package com.example.test01;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

/**
 * <p></p>
 * <p>
 * Copyright:YLZinfo 2017 cop. ltd.
 * Company:厦门易联众易方科技有限公司
 *
 * @author linwp
 * Date 2019/08/15
 */
@RestController
@RequestMapping
public class TestController {

    @Value("${password}")
    private String password;

    @PostConstruct
    public void inti(){
        System.out.println("password值： "+password);
    }
}
